package com.ruoyi.teaching.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.teaching.mapper.YaTaskCompletionMapper;
import com.ruoyi.teaching.domain.YaTaskCompletion;
import com.ruoyi.teaching.service.IYaTaskCompletionService;

/**
 * 检查阶段任务Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-09-03
 */
@Service
public class YaTaskCompletionServiceImpl implements IYaTaskCompletionService 
{
    @Autowired
    private YaTaskCompletionMapper yaTaskCompletionMapper;

    /**
     * 查询检查阶段任务
     * 
     * @param id 检查阶段任务主键
     * @return 检查阶段任务
     */
    @Override
    public YaTaskCompletion selectYaTaskCompletionById(Long id)
    {
        return yaTaskCompletionMapper.selectYaTaskCompletionById(id);
    }

    /**
     * 查询检查阶段任务列表
     * 
     * @param yaTaskCompletion 检查阶段任务
     * @return 检查阶段任务
     */
    @Override
    public List<YaTaskCompletion> selectYaTaskCompletionList(YaTaskCompletion yaTaskCompletion)
    {
        return yaTaskCompletionMapper.selectYaTaskCompletionList(yaTaskCompletion);
    }

    /**
     * 新增检查阶段任务
     * 
     * @param yaTaskCompletion 检查阶段任务
     * @return 结果
     */
    @Override
    public int insertYaTaskCompletion(YaTaskCompletion yaTaskCompletion)
    {
        return yaTaskCompletionMapper.insertYaTaskCompletion(yaTaskCompletion);
    }

    /**
     * 修改检查阶段任务
     * 
     * @param yaTaskCompletion 检查阶段任务
     * @return 结果
     */
    @Override
    public int updateYaTaskCompletion(YaTaskCompletion yaTaskCompletion)
    {
        return yaTaskCompletionMapper.updateYaTaskCompletion(yaTaskCompletion);
    }

    /**
     * 批量删除检查阶段任务
     * 
     * @param ids 需要删除的检查阶段任务主键
     * @return 结果
     */
    @Override
    public int deleteYaTaskCompletionByIds(Long[] ids)
    {
        return yaTaskCompletionMapper.deleteYaTaskCompletionByIds(ids);
    }

    /**
     * 删除检查阶段任务信息
     * 
     * @param id 检查阶段任务主键
     * @return 结果
     */
    @Override
    public int deleteYaTaskCompletionById(Long id)
    {
        return yaTaskCompletionMapper.deleteYaTaskCompletionById(id);
    }
}
